package com.centit.framework.ip.webservice.po;
import java.io.Serializable;
/**
 * @Auther: 皇甫壮
 * @Date: 2018-5-16 10:56
 * @Description:响应结果封装类
 */
public class ResponseResult<T> implements Serializable {
    private static final long serialVersionUID = -3371934618173052904L;
    private String code;
    private String desc;
    private String count;
    private T data;
    public ResponseResult() {
    }
    public ResponseResult(String code, String desc,String count) {
        this.code = code;
        this.desc = desc;
        this.count=count;
    }
    public ResponseResult(String code, T data) {
        this.code = code;
        this.data = data;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public String getCount() { return count; }
    public void setCount(String count) { this.count = count; }
    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }
    @Override
    public String toString() {
        return "ResponseResult{" +
                "CODE='" + code + '\'' +
                ", DESC='" + desc + '\'' +
                ", COUNT='" + count + '\'' +
                ", DATALIST=" + data +
                '}';
    }
}
